package org.qiyu.live.id.generate.provider;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;
import org.qiyu.live.id.generate.provider.dao.mapper.IdGenerateMapper;
import org.qiyu.live.id.generate.provider.service.IdGenerateService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

import static org.qiyu.live.id.generate.enums.IdTypeEnum.USER_ID;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: sfx
 * Date: 2023-09-19
 * Time: 21:03
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableDubbo
//@MapperScan("org.qiyu.live.id.generate.provider.dao.mapper")
public class IdGenerateApplication {
    @Autowired
    private IdGenerateService idGenerateService;

    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(IdGenerateApplication.class);
        springApplication.setWebApplicationType(WebApplicationType.SERVLET);
        springApplication.run(args);
    }
}

//@SpringBootApplication
//@EnableDiscoveryClient
//@EnableDubbo
//public class IdGenerateApplication{
//
//    public static void main(String[] args) {
//        SpringApplication springApplication = new SpringApplication(IdGenerateApplication.class);
//        springApplication.setWebApplicationType(WebApplicationType.NONE);
//        springApplication.run(args);
//    }
//}